package com.example.tianyidemo.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Post {
   private Integer postID;
   private List<User> postUser;
   private List<Comment> postComment;
   private  Integer postUserID;
   private  Integer postCommentID;
   private String postTitle;
   private String postImg;
   private String postContent;

   public void setUser(List<User> users) {
      this.postUser = users;
   }
   public void setComment(List<Comment> comment) {
      this.postComment = comment;
   }
}
